package com.sbwork.demo.entity;

import com.sbwork.base.entity.BaseEntity;
import com.sbwork.base.persistence.annotate.Column;
import com.sbwork.base.persistence.annotate.Id;
import com.sbwork.base.persistence.annotate.Table;
import com.sbwork.cache.anno.Cache;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;


@Cache
@Table(comment = "项目管理")
@Getter
@Setter
public class HyProject extends BaseEntity implements Serializable {

    @Id
    @Column(comment = "项目标识")
    private String projectId;

    @Column(typePrecis = 32, comment = "项目名称")
    private String name;

    @Column(typePrecis = 30, comment = "类型")
    private String type;

    @Column(typePrecis = 32, comment = "项目负责人标识")
    private String managerUserId;

    @Column(comment = "计划开始日志")
    private Date planStartDate;

    @Column(comment = "计划结束日志")
    private Date planEndDate;

    @Column(comment = "开始日志")
    private Date startDate;

    @Column(comment = "结束日志")
    private Date endDate;

    @Column(typePrecis = 6, comment = "省")
    private String province;

    @Column(typePrecis = 6, comment = "市")
    private String city;

    @Column(typePrecis = 6, comment = "区")
    private String district;

    @Column(typePrecis = 255, comment = "项目地址")
    private String location;

    @Column(typePrecis = 2000, comment = "项目描述")
    private String description;

    @Column(typePrecis = 10, comment = "项目状态")
    private String status;

    @Column(comment = "排序")
    private Integer sortNo;
}
